package StuManagerSystem.bean;

public class Student extends Person {
	private String major;//专业
	private Integer chinese;//语文
	private Integer english;//英语
	private Integer math;//数学
	public Student() {
		super();
	}
	public Student(String number, String username, String password, String sex, 
			Integer age, Integer roleId, String major) {
		super(number, username, password, sex, age, roleId);
		this.major = major;
	}
	public Student(String number, String username, String password, String sex, 
			Integer age, Integer roleId, String major, Integer chinese, Integer english, Integer math) {
		super(number, username, password, sex, age, roleId);
		this.major = major;
		this.chinese = chinese;
		this.english = english;
		this.math = math;
	}
	public String getMajor() {
		return major;
	}
	public void setMajor(String major) {
		this.major = major;
	}
	public Integer getChinese() {
		return chinese;
	}
	public void setChinese(Integer chinese) {
		this.chinese = chinese;
	}
	public Integer getEnglish() {
		return english;
	}
	public void setEnglish(Integer english) {
		this.english = english;
	}
	public Integer getMath() {
		return math;
	}
	public void setMath(Integer math) {
		this.math = math;
	}
	@Override
	public String toString() {
		return "Student [major=" + major + ", chinese=" + chinese + ", english=" + english + ", math=" + math
				+ ", getNumber()=" + getNumber() + ", getUsername()=" + getUsername() + ", getPassword()="
				+ getPassword() + ", getSex()=" + getSex() + ", getAge()=" + getAge() + ", getRoleId()=" + getRoleId()
				+ "]";
	}
	
}
